package cn.edu.ncut.cs.springboot.petmanagementsystem.service;

import cn.edu.ncut.cs.springboot.petmanagementsystem.pojo.Address;

import java.util.List;

/**
 * 收货地址Service接口
 */
public interface AddressService {

    /**
     * 获取收货地址列表
     */
    List<Address> getAddressList(Long userId);

    /**
     * 添加收货地址
     */
    Address addAddress(Long userId, Address address);

    /**
     * 更新收货地址
     */
    boolean updateAddress(Long addressId, Long userId, Address address);

    /**
     * 删除收货地址
     */
    boolean deleteAddress(Long addressId, Long userId);

    /**
     * 设置默认地址
     */
    boolean setDefaultAddress(Long addressId, Long userId);

    /**
     * 获取默认地址
     */
    Address getDefaultAddress(Long userId);
}
